module.exports = function($scope, $modal, $state, $stateParams,$resource){

	    //查询已发消息列表
        $scope.search = function (){
            $resource('/api/ac/sc/informaticaService/getCollNameList', {}, {}).save({}, function(res){
                if(res.errcode === 0){
                    $scope.apiname_list = res.data;
                }else{
                    toaster.error({title: '', body: res.errmsg});
                }
            });
        }
    
        init();
        //初始化列表
        function init(){
            $scope.search();
        }

    //查看交易记录
	$scope.findlist = function(info){
        console.log(info)
		var para = {
			'Collname': info
		}
		$state.go('app.companyinformatica', para);
	};
	
};